import type { App } from "vue";
import { createPinia } from "pinia";
const store = createPinia();

// 全局注册 store
export function setupStore(app : App<Element>) {
	app.use(store);
}

export * from "./base/menus";
export * from "./base/auth";

export * from "./anchor/apply";
export * from "./anchor/video";
export * from "./anchor/album";
export * from "./anchor/list";
export * from "./anchor/wallet";
export * from "./anchor/call";
export * from "./anchor/gift";

export * from "./user/list";
export * from "./user/vip";
export * from "./user/avatar";
export * from "./user/recharge";
export * from "./user/wallet";

export * from "./sys/national";
export * from "./sys/organization";
export * from "./sys/defRate";
export * from "./sys/userRate";
export * from "./sys/defConfig";
export * from "./sys/appVersion";
export * from "./sys/videoConfig";

export * from "./statistics/userIncrease";
export * from "./statistics/userActive";

export { store };